]> dgit.raspbian.org Git - gnome-shell.git/commit
tray/na-xembed: Destroy socket window when ending the embedding
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 1 May 2024 03:56:48 +0000 (05:56 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 27 Aug 2025 18:33:13 +0000 (18:33 +0000)
commitcd39f7ab4725588d237e7b79763384c0e92f41ff
tree23d8be609cc269c4c73cd04721e262a7a915b8af
parent0fea7d979a16a2cb1274502df9f7e406bb66a68c
tray/na-xembed: Destroy socket window when ending the embedding

Currently when embedding a tray icon is ended we are leaving the X11
socket window around as we don't really destroy it, while we're just
listening for its child destruction.

So, when embedding is ending we need to make sure that:
 - If the plug window is still alive, move it back to its old parent
   (normally that's the root window, but we query for it, to be sure)
 - If the plug window has been already destroyed or reparented (by us or
   by something else), we've to just destroy the socket window

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7614
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3818>
src/tray/na-xembed.c